<h1>{$obj.obj_name|stripslashes|htmlentities}</h1><br />
<div style="position:relative;">

{if is_array($aFormFields) }
	<form id="form_parameter_id_{$obj.obj_id}">
	{foreach name="formfieldloop" item=field from=$aFormFields}
	
			{if file_exists("`$CMS_TPL_DIR`forms/`$field.tpl_file`")}
				{include file="`$CMS_TPL_DIR`forms/`$field.tpl_file`" content=$field obj=$obj prefix="obj[`$obj.obj_id`]"}
			{else}
					<strong>MISSING template file &laquo; {$CMS_TPL_DIR}forms/{$field.tpl_file} &raquo;</strong> for formtype: {$field.formtype}<br />
			{/if}
			<hr style="width:100%" color="#CCCCCC" noshade="noshade" size=1 />
	{/foreach}
	</div>
	
	{if $obj.permissions.modify == 1}
		<div class="divFormFieldLabel">&nbsp;</div>

		<div class="divFormFieldInput"><input type="button" name="submitbtn" value="speichern" class="submitbtn" onclick="{literal}tinyMCE.triggerSave(false, false);xajax.request({ccdsclass:'ccdsContentEditor',ccdsfun:'ContentEditorParameterSave'},{parameters:[xajax.getFormValues('form_parameter_id_{/literal}{$obj.obj_id}{literal}')]});{/literal}"/></div>

{*		<div class="divFormFieldInput"><input type="button" name="submitbtn" value="speichern" class="submitbtn" onclick="ContentEditorParameterSave('{$obj.obj_id}');"/></div>*}
		<br style="clear:both;" />

	{else}
		Sie haben nicht Berechtigungen diesen Eintrag zu bearbeiten.
	{/if}

	</form>
{else}
Dieses Objekt enthält keine Parameter
{/if}